create or update laravel 5.8 stackoverflow

41

$flight = App\Flight::updateOrCreate(
    ['departure' => 'Oakland', 'destination' => 'San Diego'],
    ['price' => 99]
);

Comments

Submit
0 Comments